<%@ include file="public/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <link type="text/css" rel="stylesheet" href="styles/pub/default.css">
  <link type="text/css" rel="stylesheet" href="scripts/pub/validator3/validator.css"> 
  <script type="text/javascript" language="JavaScript" src="scripts/pub/jquery.js"></script>
  <script type="text/javascript" language="JavaScript" src="scripts/pub/validator3/validator.js"></script>
</head>
<body>
	<div class="main" style="width:50%;">
	<form id="MainForm" name="MainForm" action="UserModifyPassword.do" method="post" >
		<table style="width:100%;">
			<caption>
				修改用户密码
			</caption>
			<tr><td>
				<table  class="bean">
					<tr class="size">
					  <td width="16%"></td>
					  <td ><span class="errorinfo"><c:if test="${map.user.errorInfo!=null}">${map.user.errorInfo}</c:if><span></td>
					  <td width="35%" align="right">带<span  class="warning" >*</span>项必填</td>
					</tr>
					<tr>
					  <td class="formLabel"><span class="warning">*</span>用户名</td>
					  <td>${map.user.username}</td>
					  <td></td>
					</tr>
					<tr>
					  <td class="formLabel"><span class="warning">*</span>原密码</td>
					  <td><input type="password"  class="textst" name="oldpass" value="" DataType="Require" Message="原始密码必须"></td>
					  <td></td>
					</tr>
					<tr>
					  <td class="formLabel"><span class="warning">*</span>新密码</td>
					  <td><input type="password"  class="textst" name="newpass" value="" DataType="Require" Message="新密码必须"></td>
					  <td></td>
					</tr>			
					<tr>
					  <td class="formLabel"><span class="warning">*</span>重复新密码</td>
					  <td><input type="password"  class="textst" name="renewpass" DataType="Repeat" to="newpass" Message="两次输入的密码不一致"></td>
					  <td></td>
					</tr>			
				</table>
			</td></tr>
			
			<tr class="button">
				  <td align="center">
				  	<div>
					    <input type="submit" value=" 提交 " id="submitButton" id="submitButton">
					    <input type="button" value=" 返回 " onClick="window.history.back();">
				  	</div>
				   </td>
				</tr>
		</table>
	</form>
	</div>
<script type="text/javascript">
 	$(document).ready(function(){
 		Validator.Setup({
			Name : "MainForm",
			ClickElement : "submitButton",
			DataSourceType : Validator.Enumerate.DataSourceType.Attribute,
			ValidateType : Validator.Enumerate.ValidateType.Click,
			AlertType : Validator.Enumerate.AlertType.SummarySingle
		});
 	});
 </script>
</body>
</html>
